<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>将字符串数组用|或其他符号分隔（[‘a’,’b’]——   a|b）</title>
	</head>
	<body>
		<script>
		var arr = ["abc", "asd", "a",]
			var delimiter = "|"; 
			var array = arr[0];
			for (var i = 1; i < arr.length; i++) {
				array += Delimiter + arr[i];
			}
			console.log(array);
			</script>
	</body>
</html>
